package org.terramagnet.workflow.dynamic.databinding.type;

/**
 *
 * @author terrason
 */
public class StringType extends BaseDataType<String> {

    @Override
    public String caption() {
        return "字符串";
    }

    @Override
    public String parse(String text, String defaultValue) {
        if(text==null){
            return "";
        }
        return text;
    }

    @Override
    public String parse(String text) throws IllegalArgumentException {
        return parse(text,null);
    }

}
